package com.test.ml.yqs.entity;

import java.util.List;

public class User {
    private Long id;//

    private String userName;//

    private String userAcount;//

    private String uerPwd;//

    private String sscUserName;//

    private String sscUserPwd;//

    private Integer userStatu;//用户状态,0:创建未认证（比如没有激活，没有输入验证码等等）--等待验证的用户?, 1:正常状态,2：用户被锁定.

    private String salt;//



    private List<String> permissions;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserAcount() {
        return userAcount;
    }

    public void setUserAcount(String userAcount) {
        this.userAcount = userAcount == null ? null : userAcount.trim();
    }

    public String getUerPwd() {
        return uerPwd;
    }

    public void setUerPwd(String uerPwd) {
        this.uerPwd = uerPwd == null ? null : uerPwd.trim();
    }

    public String getSscUserName() {
        return sscUserName;
    }

    public void setSscUserName(String sscUserName) {
        this.sscUserName = sscUserName == null ? null : sscUserName.trim();
    }

    public String getSscUserPwd() {
        return sscUserPwd;
    }

    public void setSscUserPwd(String sscUserPwd) {
        this.sscUserPwd = sscUserPwd == null ? null : sscUserPwd.trim();
    }

    public Integer getUserStatu() {
        return userStatu;
    }

    public void setUserStatu(Integer userStatu) {
        this.userStatu = userStatu;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt == null ? null : salt.trim();
    }
    public String getCredentialsSalt(){
        return this.userAcount+this.salt;
    }

    public void setPermissions(List<String> permissions) {
        this.permissions = permissions;
    }
    public List<String> getPermissions() {
        return permissions;
    }
}